package com.fancy.emums;

import lombok.Getter;

/**
 * 状态枚举
 * Created by FancyFong on 6/9/2017.
 */
@Getter
public enum StatusEnum {
    SUCCESS(900,"成功"),
    ERROR(901,"失败"),
    LOGIN_ERROR(902,"登录失败"),
    UP(1,"上架"),
    DOWM(0,"下架")
    ;


    private Integer code;

    private String message;

    StatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
